SftTabs/NET 6.0

GetTab Method, SftTabs Class

Softel vdm, Inc.

Defines the tab page(s) where the control is visible. To be used by designers only in conjunction with SftTabs/NET.

Syntax      SftTabs Class (Softelvdm.SftTabsNET)

VB   

Public Function GetTab( ByVal control As Control ) As Integer

C#   

public int GetTab( Control control );

C++   

public: int GetTab( Control^ control );

control

The Control for which the associated tab page is to be returned.

Return Value

Returns the zero-based index of the tab where the control is located as an associated control.

Comments

The GetTab method defines the tab page(s) where the control is visible. To be used by designers only in conjunction with SftTabs/NET.

This method is used by forms designers in conjunction with SftTabs/NET. Given a control, it returns the zero-based index of the tab where the control is located as an associated control. If the control is not part of a tab control, -1 is returned.

Only immediate child windows are managed by the tab control and return a tab index. If the specified control is a child window of a window hosted by the tab control, -1 is returned.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com